package po;

public class PayPOLineItem {
	String accountId;
	double sum;
	String comment;

	
	
	public PayPOLineItem(String accountId, double sum, String comment) {
		this.accountId = accountId;
		this.sum = sum;
		this.comment = comment;
	}

	public void set(String accountId, double sum, String comment) {
		this.accountId = accountId;
		this.sum = sum;
		this.comment = comment;
	}

	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public double getSum() {
		return sum;
	}

	public void setSum(double sum) {
		this.sum = sum;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public boolean match(String accountId, double sum, String comment){
		return (this.accountId.equals(accountId))&&(this.sum == sum)&&(this.comment.equals(comment));
	}
}
